<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateInfoPictureTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('info_picture', function (Blueprint $table) {
            $table->unsignedInteger('info_id')->primary()->comment('信息表ID');
            $table->string('image_list_ids')->default('')->comment('图集ID集');
            $table->text('image_list')->nullable()->comment('图集列表，存储结构id+name+description+path+url');
            $table->text('content')->nullable()->comment('内容');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('info_picture');
    }
}
